import request from '@/utils/request'
//侧边目录栏
export function meunsData(data) {
  return request({
    url: '/system/metamodel/treeList',
    method: 'post',
    data,
  })
}


export function addtableLise(data) {
  return request({
    url: '/system/metadataModel/table/add',
    method: 'post',
    data,
  })
}

export function updatatableLise(data) {
  return request({
    url: '/system/metadataModel/table/update',
    method: 'post',
    data,
  })
}

export function treeListApi(data) {
  return request({
    url: '/system/metamodel/treeListIsDirectory',
    method: 'post',
    data,
  })
}

export function deleteableLise(data) {
  return request({
    url: '/system/metadataModel/table/delete',
    method: 'post',
    data,
  })
}

export function updatetableLise(data) {
  return request({
    url: '/system/metadataModel/table/update',
    method: 'post',

    data,
  })
}

export function detailtableLise({ params }) {
  return request({
    url: `/system/metadataModel/table/detail/${params.id}`,
    method: 'get',
    params,
  })
}

export function geusen(data) {
  return request({
    url: '/system/dataExamine/use',
    method: 'post',
    data,
  })
}

export function downloadtable() {
  return request({
    url: '/system/metadataModel/table/download',
    method: 'post',
  })
}
